@import url('https://fonts.googleapis.com/css?family=Roboto:400,700,800&display=swap');

@font-face {
    font-family: 'proximanova-bold';
    src:url('https://www.fiat.it/Resources/other/font/proximanova-bold-webfont.eot') format('embedded-opentype'); 
    src:url('https://www.fiat.it/Resources/other/font/proximanova-bold-webfont.ttf') format('truetype'),
    url('https://www.fiat.it/Resources/other/font/proximanova-bold-webfont.woff') format('woff');
}

/**
La Viewport è stata idealmente divisa in 3 fasce orizzontali
Si fa ampio ricorso al modello Flexbox di cui è garantaita una buona compatibilità https://caniuse.com/#search=Flexbox
IE >= 11    
*/
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

h1, h2, h3 {
    /*background-color: chartreuse;*/
    font-family: 'proximanova-bold';
    /*border: 1px solid grey;*/
    margin: 0;
}

/**
General purpose
*/
picture {
    margin: 0;
    width: 100%;
}

picture > img {
    width: 100%;
    height: auto;
}

/*.container {
    background-color: blueviolet;
}*/

.flex-container {
	display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    justify-content: center;
    margin: 0 auto;
}

.flex-container > .flex-item {
	padding: 0;
    /*border: 1px solid grey;*/
    text-align: center;
    flex-basis: 30%;
    flex-grow: 1;
}
/*
.end General purpose
*/

/*
Fascia in alto
*/
.header {
    /*background-color: aqua;
    border: 1px solid grey;*/
    padding: 0;
    text-align: center;
}

.header .top-bar {
    height: 140px;
    margin-bottom: 140px;
    background-color: #000000;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.header .top-bar img {
    height: 80px;
    margin-right: 15px;
}

.header > .container > p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.header > .flex-container > .flex-item-i {
	padding: 20px 12px 110px;
    text-align: center;
    margin: 0px;
    width: 30px;
    flex-basis: 30px;
}

.header > .flex-container > .flex-item-i > img {
    height: 30px;
    cursor: pointer;
}
/**
.end Fascia in alto
*/

/**
Fascia centrale
*/
.content-middle, .content-bottom {
    /*background-color: aquamarine;
    border: 1px solid grey;*/
    text-align: center;
    padding: 0;
}

.content-middle .flex-content > .im-container {
    padding-top: 50px;
    padding-bottom: 25px;
}

.content-middle .flex-content h3, .content-bottom h3 {
    font-size: 28px;
}

.content-middle .flex-content p, .content-bottom p {
    font-family: 'Roboto';
    font-size: 14px;
    line-height: 18px;
}

.content-middle a.btn, .content-bottom a.btn {
    background-color: #ffba00;
    color: #000000;
    text-decoration: none;
    font-family: 'Roboto';
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    border: 0;
    border-radius: 2px;
    padding: 12px 20px;
    cursor: pointer;
    text-transform: uppercase;
    outline: 0;
}

.content-middle a.btn:hover, .content-bottom a.btn:hover {
    background-color: #edad01;
}

.content-middle .flex-container > .flex-item-i-m {
	padding: 0;
    margin: 5px 12px;
    flex-grow: 0;
    width: 30px;
    flex-basis: 30px;
}

.content-middle .flex-container > .flex-item-i-m > img {
    height: 30px;
    width: auto;
    cursor: pointer;
}

.content-middle > .flex-container > .flex-item {
    padding-left: 12.5px;
    padding-right: 12.5px;
}

.content-middle > .flex-container > .flex-item:first-child {
    padding-left: 25px;
}

.content-middle > .flex-container > .flex-item:last-child {
    padding-right: 25px;
}

.content-middle .flex-container > .flex-item {
    display: flex; 
}

.content-middle .flex-container > .flex-item .flex-content {
    display: flex;
    flex-direction: column;
    width: 100%;
 }

 .content-middle .flex-container > .flex-item .flex-content p {
   flex: 1 0 auto;
 }

 .content-middle .flex-container .flex-item  .flex-content:nth-child(1) .container {
     padding-top: 25px;
 }
/**
.end Fascia centrale
*/

/**
Fascia footer
*/
.content-bottom {
    padding-bottom: 30px;
    padding-left: 25px;
    padding-top: 100px;
}

.content-bottom .flex-container > .flex-item:nth-child(2) .container {
    /*background-color: crimson;*/
    height: auto; /*120px come da mockup va fuori scala*/
    padding-top: 77px;
    padding-left: 50px;
    text-align: left;
}

.content-bottom .container-btn {
    padding-top: 25px;
}
/**
.end Fascia footer
*/

/**
Media Query
*/
@media (min-width: 1200px) {
    .header > .container {
        height: auto;
    }

    .header > .container > h1, .content-middle > h1 {
        font-size: 35px;
    }
}

/*Tablet*/
@media (max-width: 1199px) {

    .flex-container > .flex-item {
        flex-basis: 100%;
    }
  
    /*
    Fascia in alto
    */
    .header .top-bar {
        height: 75px;
        margin-bottom: 55px;
    }

    .header .top-bar img {
        height: 50px;
        margin-right: 10px;
    }

    .header > .flex-container > .flex-item-i {
        padding-bottom: 60px;
        padding-top: 0;
    }

    .header > .container > h1 {
        font-size: 32px;
    }

    .header > .container > p {
        line-height: 18px;
    }
    /**
    .end Fascia in alto
    */

    /**
    Fascia centrale
    */
    .content-middle > h1 {
        font-size: 32px;
    }
    .content-middle > .flex-container > .flex-item:first-child {
        padding-top: 25px;
    }

    .content-middle .flex-content > .im-container {
        margin-bottom: 0px;
        padding-top: 0px;
    }
    /**
    .end Fascia centrale
    */

    /**
    Fascia footer
    */
    .content-bottom .flex-container > .flex-item:nth-child(2) .container {
        text-align: center;
        padding-left: 0;
        padding-top: 25px;
    }

    .content-bottom .container > .im-container {
        margin-bottom: 0px;
        padding-top: 0px;
    }
    /**
    .end Fascia footer
    */
        
}

/*Tablet e Mobile mixed*/
@media (min-width:800px) and (max-width: 1199px) {

    /*
    Fascia in alto
    */
    /**
    .end Fascia in alto
    */

    /**
    Fascia centrale
    */
    .content-middle > .flex-container > .flex-item {
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 50px;
    }
    /**
    .end Fascia centrale
    */

    /**
    Fascia footer
    */
    .content-bottom {
        padding-right: 25px;
        padding-top: 50px;
    }
    
    .content-bottom .container-btn {
        padding-top: 25px;
    }
    /**
    .end Fascia footer
    */
        
}

/*Mobile*/
@media (max-width: 799px) {

    /*
    Fascia in alto
    */
    /**
    .end Fascia in alto
    */

    /**
    Fascia centrale
    */
    .content-middle > .flex-container > .flex-item {
        padding-left: 12.5px;
        padding-right: 12.5px;
        padding-top: 50px;
    }

    .content-middle > .flex-container > .flex-item:first-child,
    .content-middle > .flex-container > .flex-item:last-child {
        padding-left: 12.5px;
        padding-right: 12.5px;
    }
    .content-middle .flex-content h3, .content-bottom h3 {
        font-size: 25px;
    }
    /**
    .end Fascia centrale
    */

    /**
    Fascia footer
    */
    .content-bottom {
        padding-left: 12.5px;
        padding-right: 12.5px;
        padding-top: 50px;
    }
    /**
    .end Fascia footer
    */
}